package com.thingsgrid.device.monitor.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtils {

	/**
	 *
	 *时间戳转化为时间
	 * @author 陈学栋
	 * @date 2019/8/21 14:27
	 */
	public static String stampToDate(String timetemp){
		long timeStamp = Long.parseLong(timetemp+"000");
		SimpleDateFormat sdf=new SimpleDateFormat("HH:mm");
		String time = sdf.format(new Date(timeStamp));      // 时间戳转换成时间
		return time;
	}
}
